package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.service.AdActivityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("/zpi/wx/activity")
@RestController
@RequestMapping("/zpi/wx/activity")
public class AdActivityController {

    @Autowired
    private AdActivityService adActivityService;

    /**
     * 活动列表
     * @return
     */
    @ApiOperation(value = "活动列表", notes = "活动列表", httpMethod = "POST")
    @PostMapping("/index/home/list")
    public ResponseResult indexHomeList()
    {
        return adActivityService.indexHomeList();
    }

    @ApiOperation(value = "", notes = "", httpMethod = "GET")
    @GetMapping("test")
    public String  test(){
        return "测试放行";
    }
}
